//
//  UserInfoManager.h
//  PetExchange
//
//  Created by a on 2022/9/26.
//

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN


@interface UserInfoManager : NSObject
+ (UserInfoManager *)sharedManager;

@property (nonatomic , assign)  BOOL  isLogin;
@property (nonatomic, strong)  NSString * iToken;
@property (nonatomic, strong)  NSString * bindPhone;
@property (nonatomic, strong)  NSString * phone;
@property (nonatomic, strong)  NSString * vip_expiry_date;

//解析令牌
- (void)analyzeUserIToken:(NSString *)token;

//解析用户个人信息字典
-(void)analyzeUserInfoWith:(NSDictionary *)dict;

/**
 *  清空用户信息
 */
-(void)initEmptyData;

- (void)getUserInfoData:(void (^)(BOOL flag))success;

-(void)userInit;

-(BOOL)isVip;
@end

NS_ASSUME_NONNULL_END
